package com.bestsoft.flow.mapper;

import com.bestsoft.baseinfo.domain.BaseInfoClient;
import com.bestsoft.baseinfo.domain.BaseInfoGoods;
import com.bestsoft.baseinfo.domain.BaseInfoSupply;
import com.bestsoft.common.annotation.DataSource;
import com.bestsoft.common.enums.DataSourceType;
import com.bestsoft.flow.domain.*;

import java.util.List;

public interface FlowDataTransMapper {

    //商品1
    @DataSource(value = DataSourceType.SLAVE)
    public List<BaseInfoGoods> getGoodsSourceData(BaseInfoGoods baseInfoGoods);

    public int setGoodsTargetData(List<BaseInfoGoods> baseInfoGoodsList);

    //客户
    @DataSource(value = DataSourceType.SLAVE)
    public List<BaseInfoClient> getClientSourceData(BaseInfoClient baseInfoClient);

    public int setClientTargetData(List<BaseInfoClient> baseInfoClientList);

    public int delClientTargetData();


    @DataSource(value = DataSourceType.SLAVE)
    List<FlowGyslxPf> getGyslxPfSourceData(FlowGyslxPf flowGyslxPf);

    public int setGyslxPfTargetData(List<FlowGyslxPf> flowGyslxPfList);
    @DataSource(value = DataSourceType.SLAVE)
    List<FlowGyslxLs> getGyslxLsSourceData(FlowGyslxLs flowGyslxLs);

    public int setGyslxLsTargetData(List<FlowGyslxLs> flowGyslxLsList);
    @DataSource(value = DataSourceType.SLAVE)
    List<FlowKcjc> getBalanceSourceData(FlowKcjc flowKcjc);

    public int setBalanceTargetData(List<FlowKcjc> flowKcjcLsList);

    public int delBalanceTargetData();

    //供应商
    @DataSource(value = DataSourceType.SLAVE)
    List<BaseInfoSupply> getSupplySourceData(BaseInfoSupply baseInfoSupply);

    int setSupplyTargetData(List<BaseInfoSupply> baseInfoSupplyList);

    public int delSupplyTargetData();

    @DataSource(value = DataSourceType.SLAVE)
    List<Htxsml> gethxsmlSourceData(String nextDayString);

    public int setthxsmlTargetData(List<Htxsml> htxsmlList);
}
